import request from '@/utils/request'
export const getList = (data) => {
  return request({
    url: '/promotion/page',
    method: 'post',
    params: data
  })
}

export const del = (id) => request({
  url: '/promotion/delete/' + id,
  method: 'delete',
  data: { id: id }
})
export const add = (data) => request({
  url: 'promotion/add',
  method: 'post',
  data: data
})
export const update = (data) => request({
  url: '/promotion/update',
  method: 'put',
  data: data
})

// 更新字段
export const updateStatus = (data) => request({
  url: '',
  method: 'post',
  data: data
})
